#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = 'demure'
SITENAME = 'demu.red'
SITEURL = ''

TIMEZONE = 'America/Detroit'

DEFAULT_LANG = 'en'

DEFAULT_PAGINATION = True

### Path Stuff ### {{{
PATH = 'content'
## path-specific metadata
EXTRA_PATH_METADATA = {
    'extra/robots.txt': {'path': 'robots.txt'},
    'extra/favicon.ico': {'path': 'favicon.ico'},
    'extra/error.html': {'path': 'error.html'},
    }

## static paths will be copied without parsing their contents
STATIC_PATHS = [
    'pics',
    'extra/robots.txt',
    'extra/favicon.ico',
    'extra/error.html',
    ]

## Pages Path
PAGE_PATHS = ['pages']

## Article Path
ARTICLE_PATHS = ['articles']

## Ignore files
IGNORE_FILES = ['.template', '*draft*']
### End Path ### }}}

### URL Settings ### {{{
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{slug}/index.html'
PAGE_URL = 'pages/{slug}/'
PAGE_SAVE_AS = 'pages/{slug}/index.html'
# TAG_URL = 'tag/{slug}.html'
# TAG_SAVE_AS = 'tag/{slug}.html'
### End URL ### }}}

### Feed ### {{{
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
### End Feed ### }}}

### Theme ### {{{
THEME = "pelican-twitchy"
# Specify name of a theme installed via the pelican-themes tool
# THEME = "chunk"
# Specify a customized theme, via path relative to the settings file
# THEME = "themes/mycustomtheme"
# Specify a customized theme, via absolute path
# THEME = "/home/myuser/projects/mysite/themes/mycustomtheme"
### End Theme ### }}}

### Plugins ### {{{
PLUGIN_PATHS = ['/home/demure/projects/git/pelican-plugins']
PLUGINS = [ 
    'pelican-toc',
    'bootstrapify',
    'sitemap',
    ]
### End Plugins ### }}}

### Twitchy Settings ### {{{
## read https://github.com/ingwinlu/pelican-twitchy
    ### General ### {{{
SITESUBTITLE = "A place of geekery"
RECENT_POST_COUNT = 5
EXPAND_LATEST_ON_INDEX = True
    ### End General ### }}}

    ### More Colors? ### {{{
# BOOTSTRAP_THEME = "sandstone"
# BOOTSTRAP_THEME = "spacelab"
# BOOTSTRAP_THEME = "united"
BOOTSTRAP_THEME = "yeti"
    # PYGMENTS_STYLE = "native"
    # TYPOGRIFY = False
    # CUSTOM_CSS
    ### End Colors ### }}}

    ### Sidebar ### {{{
    # SHARE = False
SOCIAL = (
         ('RSS', 'http://demu.red/feeds/all.atom.xml'),
         ('Twitter', 'https://twitter.com/demure'),
         ('NotABug', 'https://notabug.org/demure'),
         ('DeviantArt', 'https://demuredemeanor.deviantart.com'),
         ('Etsy', 'https://www.etsy.com/shop/demuredemeanor'),
         ('Ko-fi', 'https://ko-fi.com/demure'),
         ('GitHub', 'https://github.com/demure/'),
         ('EMAIL', 'mailto:demuredemeanor+blog@gmail.com'),
         ('Stack-Overflow', 'https://stackoverflow.com/users/2327476/demure'),
         ('Stack-Exchange', 'https://stackexchange.com/users/2580702/demure'),
         )
# SITELOGO = "pics/hallow-2_150x150.png"
# SITELOGO_SIZE = "150"
HIDE_SITENAME = False
DISPLAY_RECENT_POSTS_ON_MENU = True
DISPLAY_PAGES_ON_MENU = True
DISPLAY_CATEGORIES_ON_MENU = True
DISPLAY_TAGS_ON_MENU = False
    ### End Sidebar ### }}}

    ### CC License ### {{{
    # These settings add a CC License note to the footer.
    # CC_LICENSE : Valid Settings are
    # *   CC-BY - attribution
    # *   CC-BY-SA - ShareAlike
    # *   CC-BY-ND - NoDerivatives
    # *   CC-BY-NC - attribution, No Commercial reuse
    # *   CC-BY-NC-SA - combination of above
    # *   CC-BY-NC-ND - combination of above
CC_LICENSE = "CC-BY-NC-SA"

    # Alternatively, choose by features directly:
    # *   CC_LICENSE_DERIVATIVES - yes if permitted, no if not, ShareAlike if allowed under same terms
    # *   CC_LICENSE_COMMERCIAL - yes if allowed, no if not

    # CC_ATTR_MARKUP can be set to True if you want to include attribution markup in th elicense mark.
CC_ATTR_MARKUP = True
    ### End CC ### }}}

    ### TOC Plugin ### {{{
TOC = {
    'TOC_HEADERS' : '^h[1-6]',  # What headers should be included in the generated toc
                                # Expected format is a regular expression

    'TOC_RUN'     : 'true'      # Default value for toc generation, if it does not evaluate
                                # to 'true' no toc will be generated
}
    ### End TOC ### }}}

    ### Put in publishconf.py ### {{{
        # ### Google Analytics ### {{{
        # GOOGLE_ANALYTICS
        # GOOGLE_ANALYTICS_UNIVERSAL
        # GOOGLE_ANALYTICS_UNIVERSAL_PROPERTY
        # ### End Google ### }}}

        # ### Open Graph ### {{{
        # Setting name (followed by default value, if exists)
        # ---------------------------------------------------
        # OPEN_GRAPH_FB_APP_ID
        # OPEN_GRAPH_IMAGE
        # ### End Open ### }}}
    ### End put ### }}}

### End Twitchy ### }}}

### Sitemap Settings ### {{{
SITEMAP = {
    'format': 'xml',
    'priorities': {
        'articles': 0.5,
        'indexes': 0.6,
        'pages': 0.3
    },
    'changefreqs': {
        'articles': 'monthly',
        'indexes': 'daily',
        'pages': 'monthly'
    }
}
### End Sitemap ### }}}
